package cn.edu.zafu.bigdata.yt.yichangchuli;

import java.util.Scanner;

public class TestInvalidScoreException_yt {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        
        System.out.print("Enter a score: ");
        int score = scanner.nextInt();
        
        try {
            ScoreValidator_yt.checkScore(score);
        } catch (InvalidScoreException_yt e) {
            System.out.println("Error: " + e.getMessage());
        }
        
        scanner.close();
    }
}

